package com.codingfuture.erp_system.service;

import com.codingfuture.erp_system.dto.ReturnOrdersDto;
import com.codingfuture.erp_system.entity.ReturnOrderDetailList;
import com.codingfuture.erp_system.entity.ReturnOrders;
import com.codingfuture.erp_system.entity.ReturnOrdersDetail;
import com.codingfuture.erp_system.entity.Store;

import java.util.Date;
import java.util.List;

public interface ReturnOrdersService {

    List<ReturnOrders> findByAll(ReturnOrders returnOrders);

    List<ReturnOrders> salesReturnlistByPage();

    List<ReturnOrderDetailList> findReturnOrdersDto(long uuid);

    List<Store> selectStore();

    List<ReturnOrderDetailList> findReturnOrderDetail(long uuid);

    Boolean returnDoCheck(Integer id, Date date);

    List<ReturnOrders> salesReturnlistByPage(ReturnOrders returnOrders);

    Boolean doInStore(Integer id, Date date);

    boolean doInStore(Integer id, Date date, Integer storeuuid);

    int addByOrdersDto(ReturnOrdersDto ordersDto);

    int addByReturnOrderDetails(List<ReturnOrdersDetail> returnOrderDetails);

}
